﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LogisticSearch.aspx.cs"
    Inherits="PPAP.Web.SearchReport.LogisticSearch" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagPrefix="cc1" Namespace="PPAP.WebControls" Assembly="PPAP.WebControls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="../Common/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="Form1" runat="server">
    <div>
    <font size='-1' color='gray'>Current position:Logistics>>Search</font>
        <table width="800px" style="border-color: #2A48CE; border: 1px; border-style: solid;
            border-color: Gray; border-spacing: 0px;">
            <tr style="height: 32px;">
                <td style="font-weight: bold;" bgcolor="#D7D7D7" colspan="4">
                    &nbsp;
                    Filter SET
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    &nbsp;
                    Part No.:
                </td>
                <td>
                    <cc1:PartNo ID="txtPartNo" runat="server" />
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Part Name.:
                </td>
                <td>
                    <asp:TextBox autocomplete="off"   ID="txtPartName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    &nbsp;
                    Receive date:
                </td>
                <td>
                    <asp:TextBox autocomplete="off"   ID="txtStart" onclick="WdatePicker();" runat="server"></asp:TextBox>
                    &nbsp;To:<asp:TextBox autocomplete="off"   ID="txtEnd" onclick="WdatePicker();" runat="server"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    &nbsp;
                    Supplier Code:
                </td>
                <td>
                    <asp:TextBox autocomplete="off"   ID="txtSupplierNo" runat="server"></asp:TextBox>
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Supplier Name:
                </td>
                <td>
                    <asp:TextBox autocomplete="off"   ID="txtSupplierName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr style="height:32px;">
                <td align="left" colspan="2">
                    &nbsp;
                </td>
                <td align="center">
                    &nbsp;
                </td>
                <td align="right" style="padding-right: 30px;">
                    <asp:Button ID="btnSubmit" CssClass="button" runat="server" Text="Search" OnClick="btnSubmit_Click" />
                    &nbsp;
                    <asp:Button ID="btnExport" CssClass="button" runat="server" Text="Export" OnClick="btnExport_Click" />
                </td>
            </tr>
        </table>
        <br />
        <asp:DataGrid ID="dgList" HeaderStyle-BackColor="#2E8AC5" HeaderStyle-Font-Bold="true"
            HeaderStyle-Height="32px" Width="100%" AllowSorting="true" OnLoad="dgLoad" AutoGenerateColumns="False"
            runat="server" onsortcommand="dgList_SortCommand">
            <Columns>
                <asp:BoundColumn DataField="rownum" HeaderText="No." FooterText="No.">
                    <ItemStyle HorizontalAlign="Left"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="suppliername" SortExpression="suppliername" HeaderText="Supplier Name" FooterText="Supplier Name">
                    <ItemStyle HorizontalAlign="Left"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="bdntpartno" SortExpression="bdntpartno" HeaderText="BDNT Part No." FooterText="BDNT Part No.">
                    <ItemStyle HorizontalAlign="Left"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="bdntpartname" SortExpression="bdntpartname" HeaderText="BDNT Part Name" FooterText="BDNT Part Name">
                    <ItemStyle HorizontalAlign="Left"></ItemStyle>
                </asp:BoundColumn>
                 <asp:BoundColumn DataField="color" SortExpression="color" HeaderText="Color" FooterText="Color">
                    <ItemStyle HorizontalAlign="Left"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="deliverycompany" SortExpression="deliverycompany" HeaderText="Delivery company" FooterText="Delivery company">
                    <ItemStyle HorizontalAlign="Left"></ItemStyle>
                </asp:BoundColumn>
                <asp:TemplateColumn HeaderText="Received date" FooterText="Received date" SortExpression="receivedate"  ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >
                    <ItemTemplate>
                        <asp:Label runat="server" ID="date1" Text='<%#Eval("receivedate").ToString()==""?"":DateTime.Parse(Eval("receivedate").ToString())<DateTime.Parse("1900-02-01")?"":DateTime.Parse(Eval("receivedate").ToString()).ToString("yyyy-MM-dd")  %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="receivequantity" SortExpression="receivequantity" HeaderText="Receive quantity" FooterText="Receive quantity">
                    <ItemStyle HorizontalAlign="Left"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="signprocessor" SortExpression="signprocessor" HeaderText="Receiver" FooterText="Receiver">
                    <ItemStyle HorizontalAlign="Left"></ItemStyle>
                </asp:BoundColumn>
            </Columns>
            <HeaderStyle BackColor="#E7E8E8" Font-Bold="True" Height="32px"></HeaderStyle>
        </asp:DataGrid>
        <webdiyer:AspNetPager ID="AspNetPager2" runat="server" Width="100%" CssClass="paginator"
            ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" TextBeforePageIndexBox="goto"
            HorizontalAlign="Center" PageSize="20" EnableTheming="true" AlwaysShow="True"
            FirstPageText="|&lt;" LastPageText="&gt;|" NextPageText="&gt;" PrevPageText="&lt;"
            SubmitButtonText="Go" TextAfterPageIndexBox="page" InvalidPageIndexErrorMessage="Page index is not effective numerical！"
            OnPageChanged="AspNetPager2_PageChanged" PageIndexOutOfRangeErrorMessage="Page index beyond range"
            BackColor="#E7E8E8">
        </webdiyer:AspNetPager>
    </div>
    </form>
</body>
</html>
